Param($SolutionDir)

mode con cols=1024
set-psdebug -trace 2

$BinPath = join-path $SolutionDir "XmlCmd\bin"
$LibPath = join-path $SolutionDir "lib"
$ExamplePath = join-path $Solutiondir "Examples"
$DropPath = join-path $SolutionDir "bin"

write-host $BinPath
write-host $LibPath
write-host $ExamplePath
write-host $DropPath

write-host Copy application and dlls
cp (join-path $BinPath "XmlCmd.exe")  $DropPath
cp (join-path $BinPath "*.dll") $DropPath

write-host Copy lib path
cp (join-path $LibPath "*.dll") $DropPath

write-host  Copy Examples
xcopy /Y /E /I (join-path $ExamplePath "001-ReplaceVariablesInSource") (join-path $DropPath "Examples\001-ReplaceVariablesInSource")
xcopy /Y /E /I (join-path $ExamplePath "002-MultipleTransformsMultipleVarFiles") (join-path $DropPath "Examples\002-MultipleTransformsMultipleVarFiles")
xcopy /Y /E /I (join-path $ExamplePath "003-LogLevel") (join-path $DropPath "Examples\003-LogLevel")
xcopy /Y /E /I (join-path $ExamplePath "004-VariablesOverride") (join-path $DropPath "Examples\004-VariablesOverride")
xcopy /Y /E /I (join-path $ExamplePath "005-RecursiveVariableEvaluation") (join-path $DropPath "Examples\005-RecursiveVariableEvaluation")
